package com.fuyao.cloud.admin.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lyhil
 */
@Data
public class MenuVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单id")
    private Long menuId;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单权限标识")
    private String permission;

    @ApiModelProperty(value = "菜单父id")
    private Long parentId;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "前端路由标识路径")
    private String path;

    @ApiModelProperty(value = "菜单类型,0:菜单 1:按钮")
    private String type;

    @ApiModelProperty(value = "路由缓冲")
    private String keepAlive;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "数据权限")
    private Integer dataScope;

    @ApiModelProperty(value = "关联的菜单ID")
    private Long innerMenuId;

    @ApiModelProperty(value = "关联菜单状态")
    private String menuStatus;

    @ApiModelProperty(value = "行编辑")
    public Boolean $cellEdit = Boolean.TRUE;

    @ApiModelProperty(value = "排序值")
    private Integer sortOrder;

}
